package gl.java.umsp.match;

import gl.java.util.Http;

public class Test {
    static String HOST = "118.89.234.222";
    public static void main(String[] args) throws InterruptedException {
//        String json = new User(0, 0, "").toString();
//        System.out.println(json);
//        User x = JsonUtil.fromJson(json,User.class);
//        System.out.println(x);
        mockUserList();

//        Http.httpGet("http://" + HOST + "/v1/battle/reportBattleScore?playerNum=2&gameID=200706&userID=1&userList=1,2&scoreA=1&extend_0=10");
//        Http.httpGet("http://" + HOST + "/v1/battle/reportBattleScore?playerNum=2&gameID=200706&userID=2&userList=1,2&scoreA=1&extend_0=10");

    }

    public static void mockUserList() {
        int max= 10000;
        StringBuilder users = new StringBuilder();
        for (int i = 0; i < max; i++) {
             users.append(i);
            if (i+1<max){
                users.append("-");
            }
        }
        Http.httpGet("http://"+ HOST + "/v1/battle/reportBattleScore?playerNum=2&gameID=200706&userID="+users);
    }
}
